//
//  YCRefreshHeader.m
//  YCSchool
//
//  Created by Yanglixia on 16/5/1.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//  下拉刷新控件

#import "YCRefreshHeader.h"

@interface YCRefreshHeader()

/** logo */
@property (nonatomic, weak) UIImageView *logoView;

@end

@implementation YCRefreshHeader

/**
 *  初始化
 */
- (void)prepare
{
    [super prepare];
    self.automaticallyChangeAlpha = YES;// 自动改变透明度
    self.lastUpdatedTimeLabel.hidden = NO;//是否隐藏时间
    self.lastUpdatedTimeLabel.textColor = [UIColor darkGrayColor];
    self.stateLabel.textColor = [UIColor darkGrayColor];//文字颜色
    [self setTitle:@"下拉可以刷新" forState:MJRefreshStateIdle];
    [self setTitle:@"松开立即刷新" forState:MJRefreshStatePulling];
    [self setTitle:@"拼命加载数据中..." forState:MJRefreshStateRefreshing];
    
    // 添加LOGO
//    UIImageView *logoView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"logo"]];
//    [self addSubview:logoView];
//    self.logoView = logoView;
}

/**  布局子控件 */
//- (void)placeSubviews
//{
//    [super placeSubviews];
//    self.logoView.yc_y = - self.logoView.yc_height;
//    self.logoView.yc_centerX = self.yc_width * 0.5;
//}


@end
